Using Image Editing Tools in Dreamweaver MX 2004
Patti Schulze
As you already know, Macromedia Dreamweaver is a great tool for designing and building web pages. You may not be aware of the new image editing features that have been integrated into the latest release. In the past, if you needed to make a simple image edit, you had to switch to Macromedia Fireworks, edit the image, and then return to Dreamweaver. Dreamweaver would update your pages with the changes you made to the image, but the process of switching back and forth between the two applications was sometimes inconvenient.
Now, with the new image editing features in Dreamweaver MX 2004, you can perform basic image editing operations on images without using an external image-editing application such as Macromedia Fireworks. In fact, you can still use these features, even if you haven't installed Fireworks.
This article covers just a small portion of the Dreamweaver MX 2004: Website Development instructor-led course. If you like what you see and want to get the full experience, find a Macromedia Authorized Training Partner near you. Only at a Macromedia Authorized Training location will you learn from instructors thoroughly trained and certified by Macromedia. You can learn more in a few days with a certified instructor trainer than you can learn in a year with a book. Get the skills you need to get ahead— Macromedia Training and Certification.
Requirements
To complete this tutorial you will need to install the following software and files:
Macromedia Dreamweaver MX 2004
Macromedia Fireworks MX 2004
Tutorials and sample files:
image_editing_tutorial_files.zip (179K
ZIP)
Editing Images in Dreamweaver MX 2004
The following image-editing features are available in Dreamweaver MX 2004:
Cropping reduces the area of the image. For example, you may want to eliminate unnecessary parts of the image to focus on the main subject matter.
Image resampling adds or subtracts pixels from resized JPEG and GIF image files to match the appearance of the original image as closely as possible. Resampling an image reduces an image’s file size, resulting in improved download performance.
Brightness/Contrast modifies the contrast or brightness of pixels in an image. This affects the highlights, shadows, and midtones of an image. You typically use Brightness/Contrast when correcting images that are too dark or too light.
Sharpening adjusts the focus of an image by increasing the contrast of edges found within the image. When you scan an image or take a digital photo, the default action of most image capturing software softens the edges of objects in the image. This prevents extremely fine details from becoming lost in the pixels from which digital images are composed. However, to bring out the details in digital image files, it is often necessary to sharpen the image, thereby increasing edge contrast to make the image appear sharper.
Note: Dreamweaver image-editing features apply only to JPEG and GIF image file formats. You cannot edit other bitmap image file formats using these image-editing features.
In this tutorial, you will use the Dreamweaver image-editing features to modify an existing image on a web page.
-
Open the tours.htm file from the tutorial files. Scroll to the second graphic on the page. The image of the bike rider is too large. Resize the image, crop it, and change the brightness of the image.
Figure 1. The original image
-
Select the second image, hold down the Shift key and drag the bottom right corner handle to make the image smaller. Holding down Shift as you resize the image maintains the image proportions. Notice that the Property inspector displays bold numbers for the width and the height of the image and adds a reset button, indicating that you have resized the image. You can click Reset to return the image to its original size. Notice the file size as well at the top left of the Property inspector. The image is visually smaller, but the file size has not changed. You’ll fix that in the next step.
Figure 2. The Property inspector showing the new image size
-
With the image still selected, click Resample on the Property inspector. Dreamweaver resamples the image, deleting pixels, but matching the original image as closely as possible. The file size will decrease.
Figure 3. The Property inspector with the image editing features illustrated
Note: You may get an alert dialog box informing you that you are about to permanently modify the image. If the image is the only copy you have, you may want to copy it to another file before you resize it.
Figure 4. The alert dialog box informing you that you are about to permanently modify an image
-
Select the image and click Crop on the Property inspector. Crop handles appear on the image. Drag any of the crop handles to change the crop size. Drag your mouse to the middle of the crop area to reposition the crop area within the image. Press Return (Macintosh) or Enter (Windows) to crop the image.
Figure 5. The image crop feature
-
Select the image and then click Brighten and Contrast on the Property inspector. Drag the Brightness and Contrast sliders to your liking and then click OK.
Note: Check the Preview checkbox to see your changes as you drag the sliders.
Figure 6. The image Brightness/Contrast dialog box
-
Select the image and then click Sharpen on the Property inspector. Drag the Sharpness slider to increase the sharpness of the image. Be careful not to over sharpen the image.
Note: The image in this tutorial may not need sharpening. You can always remove your changes by selecting Edit > Undo.
Figure 7. The image Sharpen dialog box
Optimizing in Fireworks
You edited the image completely within Dreamweaver; your edits did not require that you have Fireworks installed. The other two image editing features, Edit and Optimize, require Fireworks.
Once you place an image on a web page in Dreamweaver, you may decide that you want to optimize the image to reduce the file size. You could switch to Fireworks, make the change, export the new image, and then return to Dreamweaver. An easier way is to use the Optimize in Fireworks feature built into Dreamweaver.
-
In Dreamweaver, select the image you've been using in the tours.htm page.
-
Click Optimize in Fireworks on the Property inspector.
-
Fireworks opens and displays the Optimize window. Here you can make any optimization changes. For example, drag the Quality slider to 60 percent. At the top of the preview pane, the file size will change.
Figure 10. The Fireworks Optimize window
If you want to view the original image as you make your changes, click the two (or four) preview window icon at the bottom of the preview pane. Adjust the settings to your liking and then click Update. This returns you to Dreamweaver, which shows the image updated with your changes.
Figure 8. The Property inspector with the Edit and Optimize in Fireworks features illustrated
The Find Source for Optimizing (Macintosh) or Find Source (Windows) dialog box appears. If you have a source PNG file, you can click Use a PNG and then locate that file. For this example, click Use This File.
Figure 9. The Find Source for Optimizing dialog box
Edit in Fireworks
You may have an image on your website where you want to make changes other than optimizing, and you want to use Fireworks to make the changes. You could manually switch to Fireworks and open the image. Or, you could use Dreamweaver to open Fireworks and the image for you.
- With the second image selected, click Edit on the Property inspector.
-
Fireworks opens and the Find Source for Editing dialog box appears. Click Use This File. If you have a PNG source file, click Use a PNG and locate the source file.
Figure 11. The Find Source for Editing dialog box
-
The Fireworks editing window opens, indicating that you are editing a file from Dreamweaver. All the Fireworks editing tools and options are available for you to use.
Figure 12. The Fireworks editing window
-
Make any change you like and then click Done when you finish your edits. Fireworks exports the image with your changes and you return to Dreamweaver. The updated image is now on the page.
With the new image editing Dreamweaver tools, you can make simple edits to your images or quickly switch to Fireworks for more extensive edits. Now you have no excuse for graphics that are too large or not properly optimized.
About the author
Patti Schulze is the founder and president of Digital Training & Designs, a Macromedia Authorized Training center located in Dallas, Texas.Patti was the co-author of the book Macromedia Dreamweaver 4: Training from the Source and authored Macromedia Fireworks MX 2004: Training from the Source and Macromedia FreeHand MX: Training from the Source, all published by Macromedia Press.